//
//  CreatCellModel.m
//  防MVVM
//
//  Created by lanou on 16/4/29.
//  Copyright © 2016年 范明星. All rights reserved.
//

#import "CreatCellModel.h"
//#import "MyCellItemModel.h"
@implementation CreatCellModel

+(MyCellItemModel *) initWithLeftImage:(NSString *)Image itemName:(NSString *)itemName itemCellType:(MyCellItemType)type  itemRightImage:(NSString *)Rightimage itemRightName:(NSString *)itemRightName block:(ClickItemOperation)click
{
    MyCellItemModel *model = [[MyCellItemModel alloc] init];
    model.itemImage = [UIImage imageNamed:Image];
    model.itemName = itemName;
    model.itemRightImage = [UIImage imageNamed:Rightimage];
    model.itemRightname = itemRightName;
    model.clickItemOperation = click;
    model.type = type;
    
    return model;
    
}

+(MyCellItemSectionModel *) initWithArray:(NSArray *)itemCellArray  sectionName:(NSString *)sectionName sectionHeaderHeight:(CGFloat)sectionHeaderHeight
{
    MyCellItemSectionModel *section = [[MyCellItemSectionModel alloc] init];
    section.itemArray = itemCellArray;
    section.sectionName = sectionName;
    section.sectionHeaderHeight = sectionHeaderHeight;
    return section;
}



@end
